package week7.homework;

public class PictureBook extends Books{
private int color;//图片颜色种类。
        public PictureBook(String type,String name,String author, double price,int pages,int color)
        {
            super(type,name,author,price,pages);
            this.color=color;
        }

    public void setColor(int color) {
        this.color = color;
    }

    public String toString()
        {
            return "\n"+"种类"+this.getType()+"\t书名"+this.getName()+"\t作者"+ this.getAuthor()+"\t价格"+this.getPrice()+"\t颜色种类"+color;
        }
    }

